package com.zhu.salesmanagement;

import com.zhu.salesmanagement.models.VisitTaskInfo;
import com.zhu.salesmanagement.views.StorePhotosView;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcelable;
import android.view.Window;

public class StorePhotosActivity extends Activity{

	private StorePhotosView mStorePhotosView = null; //照片
	private VisitTaskInfo mVisitTaskInfo = null;

	@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        Parcelable parcelable = getIntent().getParcelableExtra("info");
        mVisitTaskInfo = (VisitTaskInfo) parcelable;
        mStorePhotosView = (StorePhotosView)getLayoutInflater().inflate(R.layout.layout_storephotos, null);
        setContentView(mStorePhotosView);

        mStorePhotosView.initData(this, mVisitTaskInfo);
	}

	protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        mStorePhotosView.onActivityResult(requestCode, resultCode, data);
    }
}
